import bookingOrder from './components/bookingOrder.vue'
import findCarOrder from './components/findCarOrder.vue'
import lowPayment from './components/lowPayment.vue'
// import rentInsteadOfSell from './components/rentInsteadOfSell.vue'
export default {
  data() {
    return {
      type: 0,
      orderStatus: null,
      id: '',
      pageFrom: '', //上一页
    }
  },
  onLoad(options) {
    this.type = options.oneTab
    this.orderStatus = options.lastTab
    this.id = options.id
    this.pageFrom = options.pageFrom ? options.pageFrom : ''
    console.log(options)
    let name = ''
    if (this.type == '0') {
      name = '预约订单'
    } else if (this.type == '1') {
      name = '低首付订单'
    }else {
      name = '寻车单订单'
    }
    uni.setNavigationBarTitle({
      title: name,
    })

    console.log(typeof options.oneTab)
  },
  components: {
    bookingOrder,
    findCarOrder,
    lowPayment,
    // rentInsteadOfSell,
  },
}
